from flask import Flask, Blueprint


from applications.view.location.raw import bp as l_raw_bp
from applications.view.location.auxiliary import bp as l_aux_bp
from applications.view.location.packaging import bp as l_pack_bp
from applications.view.location.intermediate import bp as l_mid_bp
from applications.view.location.finished import bp as l_fin_bp
# 创建sys
location_bp = Blueprint('location', __name__, url_prefix='/location')


def register_location_bps(app: Flask):
    # 在admin_bp下注册子蓝图
    location_bp.register_blueprint(l_raw_bp)
    location_bp.register_blueprint(l_aux_bp)
    location_bp.register_blueprint(l_pack_bp)
    location_bp.register_blueprint(l_mid_bp)
    location_bp.register_blueprint(l_fin_bp)
    app.register_blueprint(location_bp)